package com.glowdayz.glowmee;

import com.glowdayz.common.ActivityManager;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.app.Activity;

public class Splash extends Activity {
	
	private ActivityManager am = ActivityManager.getInstance();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		
		am.addActivity(this);

		Handler handler = new Handler() {
			@Override
			public void handleMessage(Message msg) {
				finish();
			}
		};
		// 스플래시 이미지 3초동안 표시
		handler.sendEmptyMessageDelayed(0, 2000);
	}
	
    @Override
	protected void onDestroy() {
		super.onDestroy();
		am.removeActivity(this);
	}

}
